package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 开票申请
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_invoice_records")
public class UserInvoiceRecords extends Model<UserInvoiceRecords> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "log_id", type = IdType.NONE)
    private String logId;
    /**
     * 发票抬头
     */
    @TableField("title")
    private String title;
    /**
     * 税号
     */
    @TableField("duty_paragraph")
    private String dutyParagraph;
    /**
     * 发票内容
     */
    @TableField("note")
    private String note;
    /**
     * 发票金额
     */
    @TableField("amount")
    private BigDecimal amount;
    /**
     * 更多信息
     */
    @TableField("more_msg")
    private String moreMsg;
    /**
     * 手机号码
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 邮箱地址
     */
    @TableField("email")
    private String email;
    /**
     * 申请时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 处理时间
     */
    @TableField("process_time")
    private LocalDateTime processTime;
    /**
     * 状态:0申请1处理
     */
    @TableField("status")
    private Integer status;
    /**
     * 订单数量
     */
    @TableField("order_number")
    private Integer orderNumber;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 处理人
     */
    @TableField("handle_person_id")
    private String handlePersonId;
    /**
     * 处理人单位
     */
    @TableField("handle_org_id")
    private String handleOrgId;
    /**
     * 抬头类型
     */
    @TableField("type_header")
    private String typeHeader;
    /**
     * 消息类型
     */
    @TableField("msg_type")
    private String msgType;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;
    public void freeData() {
        this.logId = null;
        this.title = null;
        this.dutyParagraph = null;
        this.note = null;
        this.amount = null;
        this.moreMsg = null;
        this.mobile = null;
        this.email = null;
        this.addTime = null;
        this.processTime = null;
        this.status = null;
        this.orderNumber = null;
        this.userId = null;
        this.handlePersonId = null;
        this.handleOrgId = null;
        this.typeHeader = null;
        this.msgType = null;
        this.remarks = null;
    }

}
